/**------------------------------------------------------------
 *
 * Copyright © 2014 rubbervalley. All rights reserved.
 *
 * @Title: MenuProductCagegoryDirective.java
 * @Package: com.rubbervalley.datacenter.directive
 * @Description: 导航
 * @author: angus
 * @date: 下午2:51:29
 * @version: V1.0
 * 
 * Update History:
 * 
 ------------------------------------------------------------*/
package com.rubbervalley.uyo.directive;

import java.io.IOException;
import java.util.Map;

import freemarker.core.Environment;
import freemarker.template.TemplateDirectiveBody;
import freemarker.template.TemplateDirectiveModel;
import freemarker.template.TemplateException;
import freemarker.template.TemplateModel;

/**
 * @author angus
 *
 */
public class MenuProductCagegoryDirective implements TemplateDirectiveModel {

	//@Autowired
	//private RubberCategoryService  rubberCategoryService;
	/* (non-Javadoc)
	 * @see freemarker.template.TemplateDirectiveModel#execute(freemarker.core.Environment, java.util.Map, freemarker.template.TemplateModel[], freemarker.template.TemplateDirectiveBody)
	 */
	@SuppressWarnings("rawtypes")
	@Override
	public void execute(Environment env, Map params, TemplateModel[] loopVars,
			TemplateDirectiveBody body) throws TemplateException, IOException {
		//List<RubberCategory> lst= rubberCategoryService.queryAllCategoryProducts();
		//env.setVariable("menuProductCagegorys", ObjectWrapper.DEFAULT_WRAPPER.wrap(lst));
		if (body != null) {  
			 body.render(env.getOut());  
	    }
	}

}
